/**
 * Created by Smile on 2017/2/27.
 */
window.onload=function () {
    var banner=document.getElementById('banner');
    var list=document.getElementById('list');
    var next=document.getElementById('next');
    var prev=document.getElementById('prev');
    function  animate(offset) {
        list.style.top=parseInt( list.style.top)+offset+'px';
    }
    prev.onclick=function () {
        animate(340);
    }
    next.onclick=function () {
        animate(-340);
    }
}
